#ifndef _FRAME_SRC_ENC_H265_H_
#define _FRAME_SRC_ENC_H265_H_
#include <stdint.h>
#include<thread>
#include <atomic>
#include <stdio.h>
#include "frame_src_component.h"
#include "x265.h"
class CFrame_src_enc_h265 :public CFrameSrcComonent
{
public:
	CFrame_src_enc_h265();
	~CFrame_src_enc_h265();
	virtual int  Open(const char* filePath, int streamID);
	virtual void Close();
	
	virtual int start();
	virtual void stop();
protected:
	int encode_thd();
	void on_capture(unsigned char* data, unsigned long len, unsigned int width, unsigned int height);
	thread m_enc_thd;
	char* m_yuv_buffer;
};

#endif
